package src.bean;

import lombok.Data;

/**
 * @author luxx
 */
@Data
public class HotQA {
	
	private int id;
	private int child_topic_id;
	private int question_id;
	private String question_name;
	private int answer_id;	//default is -1
	private String username;
	private String excerpt;
	private boolean isArticle;
	
	public HotQA() {
	}
	
	public HotQA(int child_topic_id, int question_id, String question_name, int answer_id, String username) {
		super();
		this.child_topic_id = child_topic_id;
		this.question_id = question_id;
		this.question_name = question_name;
		this.answer_id = answer_id;
		this.username = username;
	}

	public HotQA(int child_topic_id, int question_id, String question_name, int answer_id, String username, String excerpt, boolean isArticle) {
		this.child_topic_id = child_topic_id;
		this.question_id = question_id;
		this.question_name = question_name;
		this.answer_id = answer_id;
		this.username = username;
		this.excerpt = excerpt;
		this.isArticle = isArticle;
	}

}
